package com.example.weather.service;

import com.example.weather.po.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "CITYDEMO/weather")
public interface CityServiceClient {

    @RequestMapping("/cities")
    public List<City> getAllCities();

}
